import Layout from '@/layout'
import twoLayout from '@/twoLayout'

export default {
  path: '/dataMaintenance',
  name: 'dataMaintenance',
  redirect: '/dataMaintenance/personnelInformation',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: '基础数据维护',
    roles: ['user'],
    icon: 'excel'
  },
  children: [
    {
      path: 'personnelInformation',
      name: 'personnelInformation',
      redirect: '/personnelInformation/staff',
      alwaysShow: true,
      component: twoLayout,
      meta: {
        title: '人员车辆信息维护',
        roles: ['user']
      },
      children: [
        {
          path: 'staff',
          name: 'staff',
          component: () =>
            import(
              /* webpackChunkName: "PersonnelInformationStaff" */ '@/views/DataMaintenance/PersonnelInformation/Staff'
            ),
          meta: {
            title: '员工管理',
            roles: ['user']
          }
        },
        {
          path: 'vehicleManagement',
          name: 'vehicleManagement',
          component: () =>
            import(
              /* webpackChunkName: "PersonnelInformationTypeOfWork" */ '@/views/DataMaintenance/PersonnelInformation/VehicleManagement'
            ),
          meta: {
            title: '车辆管理',
            roles: ['user']
          }
        },
        {
          path: 'department',
          name: 'department',
          component: () =>
            import(
              /* webpackChunkName: "PersonnelInformationDepartment" */ '@/views/DataMaintenance/PersonnelInformation/Department'
            ),
          meta: {
            title: '部门管理',
            roles: ['user']
          }
        },
        {
          path: 'position',
          name: 'position',
          component: () =>
            import(
              /* webpackChunkName: "PersonnelInformationPosition" */ '@/views/DataMaintenance/PersonnelInformation/Position'
            ),
          meta: {
            title: '职位管理',
            roles: ['user']
          }
        },
        {
          path: 'typeOfWork',
          name: 'typeOfWork',
          component: () =>
            import(
              /* webpackChunkName: "PersonnelInformationTypeOfWork" */ '@/views/DataMaintenance/PersonnelInformation/TypeOfWork'
            ),
          meta: {
            title: '工种管理',
            roles: ['user']
          }
        }
      ]
    },
    {
      path: 'siteInformation',
      name: 'siteInformation',
      redirect: '/siteInformation/region',
      alwaysShow: true,
      component: twoLayout,
      meta: {
        title: '工点信息维护',
        roles: ['user']
      },
      children: [
        {
          path: 'region',
          name: 'region',
          component: () =>
            import(/* webpackChunkName: "SiteInformationRegion" */ '@/views/DataMaintenance/SiteInformation/Region'),
          meta: {
            title: '区域管理',
            roles: ['user']
          }
        },
        {
          path: 'sitePositioning',
          name: 'sitePositioning',
          component: () =>
            import(
              /* webpackChunkName: "SiteInformationSitePositioning" */ '@/views/DataMaintenance/SiteInformation/SitePositioning'
            ),
          meta: {
            title: '工点信息',
            roles: ['user']
          }
        },
        {
          path: 'alarmSettings',
          name: 'alarmSettings',
          component: () =>
            import(
              /* webpackChunkName: "personnelOrientationAlarmSettings" */ '@/views/DeviceManagement/PersonnelOrientation/AlarmSettings'
            ),
          meta: {
            title: '报警设置',
            roles: ['user']
          }
        },
        {
          path: 'deviceImageSettings',
          name: 'deviceImageSettings',
          component: () =>
            import(
              /* webpackChunkName: "SiteInformationSitePositioning" */ '@/views/DataMaintenance/SiteInformation/deviceImageSettings'
            )
          // meta: {
          //   title: '设备图像设置',
          //   roles: ['user']
          // }
        }
      ]
    }

    // {
    //   path: 'alarmSettings',
    //   name: 'alarmSettings',
    //   component: () =>
    //     import(
    //       /* webpackChunkName: "personnelOrientationAlarmSettings" */ '@/views/DeviceManagement/PersonnelOrientation/AlarmSettings'
    //     ),
    //   meta: {
    //     title: '报警设置',
    //     roles: ['user']
    //   }
    // }
  ]
}
